package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_MonHoc")
public class Tbl_QLDTTXA_MonHoc implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private String ten;
   private Integer soTinChi;
   private Boolean tuChon;
   private String ghiChu;
   private String maMonHoc;
   private Tbl_QLDTTXA_DM_BoMon boMonId = null;
   private Integer soTietTrongTuan;
   private Integer soTietHoc;
   private Double phanTramDanhGiaCK;
   private Double phanTramDanhGiaGK;
   private Double phanTramThucHanh;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   public String getTen() {
   	return ten;
   }
   public void setTen(String ten) {
   	this.ten= ten;
   }

   public Integer getSoTinChi() {
   	return soTinChi;
   }
   public void setSoTinChi(Integer soTinChi) {
   	this.soTinChi= soTinChi;
   }

   public Boolean getTuChon() {
   	return tuChon;
   }
   public void setTuChon(Boolean tuChon) {
   	this.tuChon= tuChon;
   }

   public String getGhiChu() {
   	return ghiChu;
   }
   public void setGhiChu(String ghiChu) {
   	this.ghiChu= ghiChu;
   }

   public String getMaMonHoc() {
   	return maMonHoc;
   }
   public void setMaMonHoc(String maMonHoc) {
   	this.maMonHoc= maMonHoc;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="boMonId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_BoMon_tbl_QLDTTXA_MonHoc")
   public Tbl_QLDTTXA_DM_BoMon getBoMonId() {
	    return boMonId;
   }
   public void setBoMonId(Tbl_QLDTTXA_DM_BoMon boMonId) {
	    this.boMonId=boMonId;
   }

   public Integer getSoTietHoc() {
   	return soTietHoc;
   }
   public void setSoTietHoc(Integer soTietHoc) {
   	this.soTietHoc= soTietHoc;
   }

   public Double getPhanTramDanhGiaCK() {
   	return phanTramDanhGiaCK;
   }
   public void setPhanTramDanhGiaCK(Double phanTramDanhGiaCK) {
   	this.phanTramDanhGiaCK= phanTramDanhGiaCK;
   }

   public Double getPhanTramDanhGiaGK() {
   	return phanTramDanhGiaGK;
   }
   public void setPhanTramDanhGiaGK(Double phanTramDanhGiaGK) {
   	this.phanTramDanhGiaGK= phanTramDanhGiaGK;
   }

   public Double getPhanTramThucHanh() {
   	return phanTramThucHanh;
   }
   public void setPhanTramThucHanh(Double phanTramThucHanh) {
   	this.phanTramThucHanh= phanTramThucHanh;
   }
public Integer getSoTietTrongTuan() {
	return soTietTrongTuan;
}
public void setSoTietTrongTuan(Integer soTietTrongTuan) {
	this.soTietTrongTuan = soTietTrongTuan;
}
}//endClass 

